home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / vbcc-ppc-src / ar / lists.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  1KB  |  49 lines

  1. /* $VER: ar lists.h V0.1 (31.01.98)
  2.  *
  3.  * This file is part of ar, a portable archive maintanance
  4.  * utility for normal and BSD-style archives.
  5.  * Copyright (c) 1999  Frank Wille
  6.  *
  7.  * ar is freeware and part of the portable and retargetable ANSI C
  8.  * compiler vbcc, copyright (c) 1995-99 by Volker Barthelmann.
  9.  * ar may be freely redistributed as long as no modifications are
  10.  * made and nothing is charged for it. Non-commercial usage is allowed
  11.  * without any restrictions.
  12.  * EVERY PRODUCT OR PROGRAM DERIVED DIRECTLY FROM MY SOURCE MAY NOT BE
  13.  * SOLD COMMERCIALLY WITHOUT PERMISSION FROM THE AUTHOR.
  14.  *
  15.  *
  16.  * v0.1  (31.01.99) phx
  17.  *       First working version, which only supports 'q' (quick append)
  18.  *       and 't' (table of contents), reads and writes normals and
  19.  *       BSD-style archives. Symbol table will not be created!
  20.  * v0.0  (29.01.99) phx
  21.  *       File created.
  22.  */
  23.  
  24. #ifndef LISTS_H
  25. #define LISTS_H
  26.  
  27.  
  28. struct node {
  29.   struct node *next;
  30.   struct node *pred;
  31. };
  32.  
  33.  
  34. struct list {
  35.   struct node *first;
  36.   struct node *dummy;
  37.   struct node *last;
  38. };
  39.  
  40.  
  41. /* functions */
  42. extern void initlist(struct list *);
  43. extern void insertbefore(struct node *,struct node *);
  44. extern void insertbehind(struct node *,struct node *);
  45. extern void addhead(struct list *,struct node *);
  46. extern void addtail(struct list *,struct node *);
  47.  
  48. #endif
  49.